//
//  HttpManager.h
//  p2p
//
//  Created by mokai on 14-8-13.
//  Copyright (c) 2014年 cloudyoo. All rights reserved.
//

@class HttpResponse;
@protocol  AFMultipartFormData;

typedef void(^HttpOKBlock)(HttpResponse *response,id responseObj);
typedef void(^HttpNOBlock)(HttpResponse *response,NSString *errMsg);
typedef void(^HttpUploadBlock)(long long totalBytes, long long writed);//文件总大小,已上传
typedef void(^HttpBodyBlock)(id<AFMultipartFormData> formData);

#import <Foundation/Foundation.h>
#import "HttpRequest.h"

@interface HttpManager : NSObject

+(HttpManager *)shareManager;
-(void)request:(HttpRequest *)request;

@end
